﻿using System;
using System.Collections.Generic;
using System.Text;

namespace InternetSpiderLib.Scenes.Filters
{
    public class StatusCodeSceneFilter : ISceneFilter
    {
        public int StatusCode { get; set; }

        public bool Filter(DataBox data)
        {
            var statusCode = data?.Get<int>(SceneContextKey.StatusCode) ?? -1;
            return StatusCode == statusCode;
        }
    }
}
